﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace RPG
{
    public delegate void CheckBoxEventHandler(CGUICheckBox triggerCheckBox);
    public delegate void ButtonEventHandler(CGUIButton triggerButton);
    public delegate void TrackBarEventHandler(CGUITrackBar triggerTrackBar);
    public class CGUIObject
    {
        public enum TextAlign
        {
            TOPLEFT = 0,
            CENTERED = 1,
            TOPRIGHT = 2,
            BOTTOMLEFT = 3,
            BOTTOMRIGHT = 4,
            TOP = 5,
            BOTTOM = 6,
            LEFT = 7,
            RIGHT = 8
        }

        //Public
        public Vector2 size;
        public CGUIWindow parentWindow;
        public Vector2 position;
        public BoundingBox boundingBox;

        //Methods
        public virtual void Initialize(ContentManager content){}
        public virtual void Draw(SpriteBatch spriteBatch){}
        public virtual void Update(GameTime gameTime, MouseState oldMouseState, MouseState newMouseState) {}
    }
}
